* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
}

.logo {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.nav-links {
    list-style: none;
    margin-top: 20px;
}

.nav-links li {
    margin: 10px 0;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(76, 175, 80, 0.5);
    padding-left: 16px;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4CAF50;
    padding-left: 16px;
    font-weight: bold;
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f5f6fa;
}

.upload-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.upload-area {
    border: 2px dashed #3498db;
    padding: 40px;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
    cursor: pointer;
}

.result-container {
    margin-top: 30px;
}

.result-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.header-section {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.subtitle {
    color: #666;
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

.analysis-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.select-style {
    width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.text-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.text-stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.analyze-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.record-btn {
    background-color: #1890ff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    min-width: 120px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.record-btn:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.record-btn.recording {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.record-btn.recording:hover {
    background-color: #ff7875;
    border-color: #ff7875;
}

.record-icon {
    display: inline-block;
    color: white;
    margin-right: 4px;
    font-size: 18px;
    vertical-align: middle;
}

.record-btn.recording .record-icon {
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
} 